import request from '@/utils/request'
//采购分析列表展示
// /bom/stap/inchange/page
export function inchangePage(query) {
  return request({
    url: '/bom/stap/inchange/page',
    method: 'get',
    params: query
  })
}

///pandian/panDianAnalysis/getProductPositive
//分析展示-产品优势分析-销量top10
export function getProductPositive(query) {
  return request({
    url: '/pandian/panDianAnalysis/getProductPositive',
    method: 'get',
    params: query
  })
}
///pandian/panDianAnalysis/getProductPositiveProfit
// 分析展示 - 产品优势分析 - 毛利总金额top10菜品
export function getProductPositiveProfit(query) {
  return request({
    url: '/pandian/panDianAnalysis/getProductPositiveProfit',
    method: 'get',
    params: query
  })
}
///pandian/costAnalysis/getTargetManageDiscount
// 分析展示-目标管理-折扣前
export function getTargetManageDiscount(query) {
  return request({
    url: '/pandian/costAnalysis/getTargetManageDiscount',
    method: 'post',
    data: query
  })
}
// 分析展示-目标管理-实际毛利率
export function getTargetManageReal(query) {
  return request({
    url: '/pandian/costAnalysis/getTargetManageReal',
    method: 'post',
    data: query
  })
}
// 分析展示-阶段运营分析
export function getStageOperation(query) {
  return request({
    url: '/pandian/costAnalysis/getStageOperation1',
    method: 'post',
    data: query
  })
}
//顶级类别列表损益分析  1
export function topcatePage(query) {
  return request({
    url: '/pandian/stapproloss/topcate/page',
    method: 'get',
    params: query
  })
}
//损益分析合计
export function topcateTotal(query) {
  return request({
    url: '/pandian/stap/proloss/total',
    method: 'get',
    params: query
  })
}

// 无成本卡产品
export function unUsedBom(query) {
  return request({
    url: '/bom/bomAnalsys/unUsedBom',
    method: 'get',
    params: query
  })
}
//成本卡未使用原料
export function stapByunUsedBom(query) {
  return request({
    url: '/bom/bomAnalsys/stapByunUsedBom',
    method: 'get',
    params: query
  })
}
//无审定成本卡
export function statFoodUnlocked(query) {
  return request({
    url: '/bom/bomAnalsys/statFoodUnlocked',
    method: 'get',
    params: query
  })
}
//成本卡偏大或者小 bomCardParse
export function bomCardParse(query) {
  return request({
    url: '/bom/bomAnalsys/bomCardParse',
    method: 'get',
    params: query
  })
}
// 亏盈
export function twoPeriodCompare(query) {
  return request({
    url: '/bom/bomAnalsys/twoPeriodCompare',
    method: 'get',
    params: query
  })
}
// 原料盈亏
export function twoPeriodCompareDetail(query) {
  return request({
    url: '/bom/bomAnalsys/twoPeriodCompareDetail',
    method: 'get',
    params: query
  })
}



////库存分析
export function getStock(query) {
  return request({
    url: '/pandian/costAnalysis/getStock',
    method: 'get',
    params: query
  })
}

export function getCaseAnalsysIninfo(query) {
  return request({
    url: '/pandian/costAnalysis/getCaseAnalsysIninfo',
    method: 'post',
    data: query
  })
}
//某顶级类各部门损益分析 2
export function topcateDept(query) {
  return request({
    url: '/pandian/stapproloss/topcate/dept',
    method: 'get',
    params: query
  })
}
//各部门该物料损益分析
export function stapprolossDept(query) {
  return request({
    url: '/pandian/stapproloss/dept/page',
    method: 'get',
    params: query
  })
}
//某部门某类的物料spu损益分析（业务逻辑待确定 3
export function stapprolossDeptCate(query) {
  return request({
    url: '/pandian/stapproloss/dept/cate/page',
    method: 'get',
    params: query
  })
}
//该部门该物料sku盘点及核算表 4 
export function stapprolossInfo(query) {
  return request({
    url: '/pandian/stapproloss/infoDetial',
    method: 'get',
    params: query
  })
}
//某顶级类物料列表损益分析
export function stapprolossPage(query) {
  return request({
    url: '/pandian/stapproloss/page',
    method: 'get',
    params: query
  })
}
//部门列表损益分析
export function deptAllpage(query) {
  return request({
    url: '/pandian/stapproloss/dept/allpage',
    method: 'get',
    params: query
  })
}
// 该部门该物料sku盘点及核算表[实际]
export function infoItem(query) {
  return request({
    url: '/pandian/stapproloss/infoItem',
    method: 'get',
    params: query
  })
}
// 该部门该物料sku盘点及核算表
export function Infostapproloss(query) {
  return request({
    url: '/pandian/stapproloss/spu/deptPage',
    method: 'get',
    params: query
  })
}
//用料实盘诊断
export function stapprolossDiagnosis(query) {
  return request({
    url: '/pandian/stapproloss/diagnosis',
    method: 'get',
    params: query
  })
}
//用料实盘诊断明细
export function infostapprolossDiagnosis(query) {
  return request({
    url: '/pandian/stapproloss/diagnosis/info',
    method: 'get',
    params: query
  })
}

//原材料损益
export function diagnosisStapProlossAnalys(query) {
  return request({
    url: '/pandian/originalStapProloss/list',
    method: 'get',
    params: query
  })
}
//原材料损益详情
export function diagnosisStapProlossAnalysDetail(query) {
  return request({
    url: '/pandian/originalStapProloss/detail',
    method: 'get',
    params: query
  })
}
//原材料损益详情
export function originalStapProlossStapDetail(query) {
  return request({
    url: '/pandian/stapproloss/infoDetial',
    method: 'get',
    params: query
  })

}
